package com.cti.ftpservice.vo;

import java.io.IOException;

import com.cti.ftpservice.ftp.FTPOnixXmlAnalysisWork;

/**
 * 解析Onix文件多线程类
 * @author Administrator
 *
 */
public class FTPOnixXmlAnalysisTaskInfoVo extends FtpBaseTaskInfoVo{

	@Override
	public void startWork() throws InterruptedException, NumberFormatException, IOException {
		setFinished(false);
		for (int i = 1; i <= getThreadCount(); i++) {
			FTPOnixXmlAnalysisWork ftpDownFiles = new FTPOnixXmlAnalysisWork(this);
			Thread thread = new Thread(ftpDownFiles);
			thread.setName("fTPOnixXmlAnalysisTaskWork" + i);
			threads.add(thread);
			thread.start();
		}
	}
}
